Skip to content

fix: use git url instead of GitHub for kernel repo#3551

Merged
mbani01 merged 2 commits into
mainfrom
fix/use_git_url_instead_of_github_for_kernel_repo
Oct 29, 2025
Merged

fix: use git url instead of GitHub for kernel repo#3551
mbani01 merged 2 commits into
mainfrom
fix/use_git_url_instead_of_github_for_kernel_repo

Conversation

@mbani01
Copy link
Copy Markdown
Contributor

@mbani01 mbani01 commented Oct 28, 2025

This pull request introduces a normalization function to ensure that the forkedFrom URL for forked repositories is correctly mapped in special cases, specifically for the Linux kernel repository. The normalization logic is added in both the GitHub REST integration use case and the GithubIntegrationService class. This change prevents the system from referencing the GitHub mirror of the Linux kernel and instead maps it to the official kernel.org repository URL.

Normalization of forked repository URLs

  • Added a normalizeForkedFrom function in getInstalledRepositories.ts to handle special cases, mapping the Linux kernel GitHub mirror to the official kernel.org URL.
  • Updated the parseRepos function in getInstalledRepositories.ts to use the new normalization function when setting the forkedFrom property.

GithubIntegrationService enhancements

  • Implemented a static normalizeForkedFrom method in GithubIntegrationService.ts to centralize normalization logic for forked repository URLs.
  • Updated repository parent URL handling in GithubIntegrationService.ts to use the normalization method when fetching parent repository information and when constructing repository data. [1] [2]

@mbani01 mbani01 requested a review from themarolt October 28, 2025 14:34
@mbani01 mbani01 self-assigned this Oct 28, 2025
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

@mbani01 mbani01 merged commit 93c1fd6 into main Oct 29, 2025
13 checks passed
@mbani01 mbani01 deleted the fix/use_git_url_instead_of_github_for_kernel_repo branch October 29, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants